package com.fusion.redis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

import com.fusion.redis.service.RedisSendService;

@Service
public class RedisSendServiceImpl implements RedisSendService {

	@Autowired
	private StringRedisTemplate stringRedisTemplate;

	//向通道发送消息的方法
	public void sendChannelMess(String channel, String message) {
		stringRedisTemplate.convertAndSend(channel, message);
	}
}
